home *** CD-ROM | disk | FTP | other *** search
/ Aminet 25 / Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso / Aminet / gfx / 3d / irit70PPC.lha / irit70PPC / bin.lha / bin / nt_mkdef.cmd < prev    next >
Encoding:
Text File  |  1998-02-21  |  614 b   |  15 lines

  1. @echo off
  2.  
  3. Rem
  4. Rem   A crude way to construct DEF file for DLL construction out of OBJ files
  5. Rem for Window NT 4.0. Expects one argument - the library directory
  6. Rem
  7. Rem   The following construction is highly VC++ version dependend (tested
  8. Rem on VC 4.1) and assumes the availability of grep, sed and gawk.
  9. Rem   If you have a better idea how to construct the def file, let me know!!!
  10. Rem   In fact, I cannot believe there is no way in VC++ to construct a DLL
  11. Rem that simply exports ALL external symbols...
  12. Rem
  13.  
  14. dumpbin /symbols %1/*.obj | grep -v UNDEF | grep External | gawk -- {print$NF} | sed -e "s/_//" >> %2
  15.